package com.tdam2011.grupo02.ui;

import android.content.Context;

public class ContactActionControllerSingleton {

	private ContactActionController controller = null;
	private static ContactActionControllerSingleton controllerSingleton = null;

	private ContactActionControllerSingleton(Context context) {
		controller = new ContactActionController(context);
	}

	private static void createInstance(Context context) {
		if (controllerSingleton == null)
			controllerSingleton= new ContactActionControllerSingleton(
					context);
	}

	public static ContactActionControllerSingleton getInstance(Context context) {
		if (controllerSingleton == null)
			createInstance(context);

		return controllerSingleton;
	}

	public ContactActionController getContactActionController() {
		return controller;
	}
}
